import axios from "@/utils/request";

export const newsDetail = id => axios({
    url: '/post/' + id,
    method:"get"
})

export const post_like = id => axios({
    url: '/post_like/' + id,
    method:"get"
})

export const post_star = id => axios({
    url: '/post_star/' + id,
    method:"get"
})

//收藏文章
export const user_star = () => axios({
    url: '/user_star',
    method:"get"
})

//评论列表
export const post_comment = id => axios({
    url: '/post_comment/' + id,
    method:"get"
})
